//
//  SGBaseModel.h
//  SGShow
//
//  Created by fanshijian on 15/10/13.
//  Copyright (c) 2015年 fanshijian. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SGBaseModel : NSObject
@property (nonatomic, strong) NSString *timeStamp;
@property (nonatomic, strong) NSString *version;
+ (SGBaseModel *)shareInstance;

+ (instancetype)instanWithKeyValues:(NSDictionary *)dic;
- (NSMutableDictionary *)keyValues;
- (NSMutableDictionary *)keyValuesWithKeyPathMapper:(NSArray *)keyPaths;
- (NSMutableDictionary *)keyValuesWithIgnoreKeyPathMapper:(NSArray *)keyPaths;

- (BOOL)checkIsSelfInArray:(NSArray *)array;

@end
